<?php

namespace App\Http\Requests;
use App\Http\Requests\HomeRegister;
use App\Http\Requests\Request;

class HomeRegister extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

       public function rules()
    {
        return [
            'username' => 'required',
            'password' => 'required',
            'email' => 'required',
            "vcode"=>'required'
        ];
    }
    public function messages()
    {
        return [
            'username.required'=>'用户名必须填写',
            
            'password.required'=>'密码必须填写',
            'email.required'=>'邮箱必须填写',
            'vcode.required'=>'验证码必须填写',
        ];
    }
   
}
